    var LODOP; //声明为全局变量  

    function CreatePrintPage(strShipper,strShipper_telephone,strSite,strReceiver,strReceiver_telephone,strDelivery_method,strGoods_name,strGoods_num,strFreight,strDemo,strCod_fee,strOperate_datetime,strShipping_no,strGoods_value){
		LODOP=getLodop();  	    
		LODOP.PRINT_INITA(-22,3,792,382,"套打");
		LODOP.SET_PRINT_PAGESIZE(1,"210mm","102mm","");//设置纸张高度
		LODOP.ADD_PRINT_SETUP_BKIMG("D:\\DOC150710-20150710\\Page0001_看图王.jpg");
		LODOP.SET_SHOW_MODE("BKIMG_WIDTH",990);
		LODOP.SET_SHOW_MODE("BKIMG_HEIGHT",482);
		LODOP.ADD_PRINT_TEXT(116,158,118,27,strShipper);        //发货人姓名
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(116,392,164,27,strShipper_telephone);   //发货人电话
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(77,95,232,27,strSite);               //物流站信息
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(159,158,116,27,strReceiver);        //收货人姓名
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(159,392,164,27,strReceiver_telephone);   //收货人电话
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(155,607,120,27,strDelivery_method);    //送货方式
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(238,58,156,27,strGoods_name);         //货物名称
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(238,233,76,27,strGoods_num);          //件数
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(238,350,76,27,strGoods_value);          //货物保价
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);		
		LODOP.ADD_PRINT_TEXT(238,526,78,27,strFreight);               //金额
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(235,622,104,71,strDemo);              //备注
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(319,174,111,27,strCod_fee);           //代收货款
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(77,348,170,27,strOperate_datetime);                //发货日期
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		LODOP.ADD_PRINT_TEXT(38,581,150,27,strShipping_no);           //运单号
		LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
		
		
		 
	};
	function Preview1() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');
	  	LODOP.PREVIEW();		
	};
	function Design1() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');

	//		LODOP.SET_SHOW_MODE("HIDE_ITEM_LIST",true);//设置对象列表默认处于关闭状态
//		LODOP.SET_SHOW_MODE("TEXT_SHOW_BORDER",1); //设置字符编辑框默认为single	
		LODOP.PRINT_DESIGN();		
	};
	function Preview2() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');

	    LODOP.PREVIEW();		
	};			
	function Setup2() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');

	    LODOP.PRINT_SETUP();		
	};
	function Design2() {	
		LODOP.PRINT_DESIGN();
	};	
	function RealPrint() {		
		CreatePrintPage('<?php echo $shipping['shipper'] ?>','<?php echo $shipping['shipper_telephone'] ?>','<?php  echo  $shipping['checkin_site_name'].'-'.$shipping['transfer_station'].'-'.$shipping['destination_site_name']; ?>','<?php echo $shipping['receiver'] ?>','<?php echo $shipping['receiver_telephone'] ?>','<?php echo $shipping['delivery_methmod_name'] ?>','<?php echo $shipping['goods_name'] ?>','<?php echo $shipping['goods_num'] ?>','<?php echo $shipping['freight'] ?>','<?php echo $shipping['demo'] ?>','<?php echo $shipping['cod_fee'];?>',' <?php echo $shipping['operate_datetime']; ?>','<?php  echo  $shipping['shipping_no']; ?>','<?php  echo  $shipping['goods_value']; ?>');

		LODOP.PRINTA(); 
	};	


